<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>项目目标值导入</title>
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui-v2.5.6/layui/css/layui.css"  media="all">
    <script src="layui-v2.5.6/layui/layui.js" charset="utf-8"></script>
    <script src="js/jquery-3.4.1.js" charset="utf-8"></script>
    <script src="js/common.js" charset="utf-8"></script>
</head>
<body>
<div class="layui-form" style="margin-top: 20px">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">年份：</label>
            <div class="layui-input-inline">
                <input type="text" readonly class="layui-input" id="year" placeholder="yyyy">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">公司：</label>
            <div class="layui-input-inline">
                <select name="companies" id="companies" lay-verify="required">
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <button class="layui-btn" id="queryBtn" data-type="reload" style="margin-left: 50px;">
                    <i class="layui-icon layui-icon-search"></i>查询</button>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <button class="layui-btn layui-btn-normal" id="importBtn" style="margin-left: -50px;">
                    <i class="layui-icon layui-icon-upload-drag"></i>导入</button>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <button class="layui-btn layui-btn-warm" id="downloadBtn" style="margin-left: -150px;">
                    <i class="layui-icon layui-icon-export"></i>导出</button>
            </div>
        </div>
    </div>
</div>
<table class="layui-hide" id="table"></table>

<form class="layui-form" id="importForm" style="display:none">
    <div class="layui-form-item" style="margin-top: 50px">
        <label class="layui-form-label">年份：</label>
        <div class="layui-input-block" style="width: 250px">
            <input type="text" readonly class="layui-input" id="importYear" placeholder="yyyy">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">公司：</label>
        <div class="layui-input-block" style="width: 250px">
            <select name="companies" id="importCompanies" lay-verify="required">
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" class="layui-btn layui-btn-normal" id="selectFile" style="margin-left: -50px;">
                <i class="layui-icon layui-icon-file"></i>选择文件(.xlsx)</button>
            <span id="fileName"></span>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block" style="float: right;margin-right: 20px">
            <button type="button" class="layui-btn" id="submitFile" >提交</button>
            <button type="button" id="cancelImport" class="layui-btn layui-btn-primary">取消</button>
        </div>
    </div>
</form>

<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script src="importProjectTarget.js" charset="utf-8"></script>

</body>
</html>